package com.ruoyi.customer.domain;

import com.ruoyi.common.core.domain.UserEntity;
import com.ruoyi.market.domain.ConfigBase;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 用户分销对象 customer_user
 *
 * @author ruoyi
 */
public class CustomerDistribution extends UserEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 店铺ID */
    private String shopId;

    /** 用户已提佣金 */
    private BigDecimal moneyGet;

    /** 用户累计佣金 */
    private BigDecimal moneyTotal;

    /** 用户累计成交金额 */
    private BigDecimal moneyOrder;

    /** 用户余额 */
    private BigDecimal balance;

    /** 邀请用户数 */
    private Long inviteCount;

    /** 成交单量 */
    private Long orderCount;

    /** 分销比例 */
    private Long distributionRate;

    /** 分销模式  { value: 'CPA', label: 'CPA邀请制'},
     { value: 'CPS', label: 'CPS订单返佣制'},
     { value: 'CPB', label: '博主广告位制'}, */
    private String distributionModel;

    /** 分销素材图片 */
    private String distributionImage;

    /** 收款二维码 */
    private String qrCode;

    /** 收款微信Id */
    private String wxId;

    /** 收款真实姓名 */
    private String realName;

    private CustomerUser customerUser;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public CustomerDistribution()
    {

    }

    public CustomerDistribution(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public String getShopId()
    {
        return shopId;
    }

    public void setShopId(String shopId)
    {
        this.shopId = shopId;
    }

    public BigDecimal getMoneyGet(){ return moneyGet;}

    public void setMoneyGet(BigDecimal moneyGet){ this.moneyGet = moneyGet; }

    public BigDecimal getMoneyTotal(){ return moneyTotal;}

    public void setMoneyTotal(BigDecimal moneyTotal){ this.moneyTotal = moneyTotal; }

    public BigDecimal getMoneyOrder(){ return moneyOrder;}

    public void setMoneyOrder(BigDecimal moneyOrder){ this.moneyOrder = moneyOrder; }

    public BigDecimal getBalance(){ return balance;}

    public void setBalance(BigDecimal balance){ this.balance = balance; }

    public Long getInviteCount()
    {
        return inviteCount;
    }

    public void setInviteCount(Long inviteCount)
    {
        this.inviteCount = inviteCount;
    }

    public Long getOrderCount()
    {
        return orderCount;
    }

    public void setOrderCount(Long orderCount)
    {
        this.orderCount = orderCount;
    }

    public String getDistributionImage()
    {
        return distributionImage;
    }

    public void setDistributionImage(String distributionImage)
    {
        this.distributionImage = distributionImage;
    }

    public Long getDistributionRate()
    {
        return distributionRate;
    }

    public void setDistributionRate(Long distributionRate)
    {
        this.distributionRate = distributionRate;
    }

    public String getDistributionModel()
    {
        return distributionModel;
    }

    public void setDistributionModel(String distributionModel)
    {
        this.distributionModel = distributionModel;
    }

    public String getQrCode()
    {
        return qrCode;
    }

    public void setQrCode(String qrCode)
    {
        this.qrCode = qrCode;
    }

    public String getWxId()
    {
        return wxId;
    }

    public void setWxId(String wxId)
    {
        this.wxId = wxId;
    }

    public String getRealName()
    {
        return realName;
    }

    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public CustomerUser getCustomerUser()
    {
        return customerUser;
    }

    public void setCustomerUser(CustomerUser customerUser)
    {
        this.customerUser = customerUser;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("shopId", getShopId())
                .append("moneyGet", getMoneyGet())
                .append("moneyTotal", getMoneyTotal())
                .append("moneyOrder", getMoneyOrder())
                .append("inviteCount", getInviteCount())
                .append("orderCount", getOrderCount())
                .append("distributionModel", getDistributionModel())
                .append("distributionImage", getDistributionImage())
                .append("distributionRate", getDistributionRate())
                .append("balance", getBalance())
                .append("qrCode", getQrCode())
                .append("wxId", getWxId())
                .append("realName", getRealName())
                .append("customerUser", getCustomerUser())
                .append("shopInfo", getShopInfo())
                .append("active", getActive())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
